import {
	get,
	post
} from "../utils/request.js";
export function apiGetTeachers(pageCurrnt,pageSize,data) {
	return post({
		url: `/teacher/findTeacher/${pageCurrnt}/${pageSize}`,
		data:data
	})
}


export function apiGetTeacherById(id) {
	return get({
		url: `/teacher/selectTeacherById/${id}`
	})
}
export function addTeacher(data){
	console.log(data)
	return post({
		url: `/teacher/apply`,
		data
	})
}
export function getApply(phone){
	return get({
		url: `/teacher/checkTeacher/selectByPhone/${phone}`
	})
}
export function isTeacher(phone){
	return get({
		url: `/teacher/isTeacher/${phone}`
	})
}

